Optimal. Leaf size=64 \[ \frac{a^5}{2 d (a-a \sin (c+d x))^2}-\frac{2 a^4}{d (a-a \sin (c+d x))}-\frac{a^3 \log (1-\sin (c+d x))}{d} \]
[Out]
________________________________________________________________________________________
Rubi [A] time = 0.110029, antiderivative size = 64, normalized size of antiderivative = 1., number of steps used = 4, number of rules used = 3, integrand size = 29, \(\frac{\text{number of rules}}{\text{integrand size}}\) = 0.103, Rules used = {2836, 12, 43} \[ \frac{a^5}{2 d (a-a \sin (c+d x))^2}-\frac{2 a^4}{d (a-a \sin (c+d x))}-\frac{a^3 \log (1-\sin (c+d x))}{d} \]
Antiderivative was successfully verified.
[In]
[Out]
Rule 2836
Rule 12
Rule 43
Rubi steps
\begin{align*} \int \sec ^3(c+d x) (a+a \sin (c+d x))^3 \tan ^2(c+d x) \, dx &=\frac{a^5 \operatorname{Subst}\left (\int \frac{x^2}{a^2 (a-x)^3} \, dx,x,a \sin (c+d x)\right )}{d}\\ &=\frac{a^3 \operatorname{Subst}\left (\int \frac{x^2}{(a-x)^3} \, dx,x,a \sin (c+d x)\right )}{d}\\ &=\frac{a^3 \operatorname{Subst}\left (\int \left (\frac{a^2}{(a-x)^3}-\frac{2 a}{(a-x)^2}+\frac{1}{a-x}\right ) \, dx,x,a \sin (c+d x)\right )}{d}\\ &=-\frac{a^3 \log (1-\sin (c+d x))}{d}+\frac{a^5}{2 d (a-a \sin (c+d x))^2}-\frac{2 a^4}{d (a-a \sin (c+d x))}\\ \end{align*}
Mathematica [A] time = 0.144288, size = 45, normalized size = 0.7 \[ -\frac{a^3 \left (\frac{3-4 \sin (c+d x)}{(\sin (c+d x)-1)^2}+2 \log (1-\sin (c+d x))\right )}{2 d} \]
Antiderivative was successfully verified.
[In]
[Out]
________________________________________________________________________________________
Maple [B] time = 0.083, size = 220, normalized size = 3.4 \begin{align*}{\frac{{a}^{3} \left ( \tan \left ( dx+c \right ) \right ) ^{4}}{4\,d}}-{\frac{{a}^{3} \left ( \tan \left ( dx+c \right ) \right ) ^{2}}{2\,d}}-{\frac{{a}^{3}\ln \left ( \cos \left ( dx+c \right ) \right ) }{d}}+{\frac{3\,{a}^{3} \left ( \sin \left ( dx+c \right ) \right ) ^{5}}{4\,d \left ( \cos \left ( dx+c \right ) \right ) ^{4}}}-{\frac{3\,{a}^{3} \left ( \sin \left ( dx+c \right ) \right ) ^{5}}{8\,d \left ( \cos \left ( dx+c \right ) \right ) ^{2}}}-{\frac{3\,{a}^{3} \left ( \sin \left ( dx+c \right ) \right ) ^{3}}{8\,d}}-{\frac{{a}^{3}\sin \left ( dx+c \right ) }{d}}+{\frac{{a}^{3}\ln \left ( \sec \left ( dx+c \right ) +\tan \left ( dx+c \right ) \right ) }{d}}+{\frac{3\,{a}^{3} \left ( \sin \left ( dx+c \right ) \right ) ^{4}}{4\,d \left ( \cos \left ( dx+c \right ) \right ) ^{4}}}+{\frac{{a}^{3} \left ( \sin \left ( dx+c \right ) \right ) ^{3}}{4\,d \left ( \cos \left ( dx+c \right ) \right ) ^{4}}}+{\frac{{a}^{3} \left ( \sin \left ( dx+c \right ) \right ) ^{3}}{8\,d \left ( \cos \left ( dx+c \right ) \right ) ^{2}}} \end{align*}
Verification of antiderivative is not currently implemented for this CAS.
[In]
[Out]
________________________________________________________________________________________
Maxima [A] time = 1.08402, size = 80, normalized size = 1.25 \begin{align*} -\frac{2 \, a^{3} \log \left (\sin \left (d x + c\right ) - 1\right ) - \frac{4 \, a^{3} \sin \left (d x + c\right ) - 3 \, a^{3}}{\sin \left (d x + c\right )^{2} - 2 \, \sin \left (d x + c\right ) + 1}}{2 \, d} \end{align*}
Verification of antiderivative is not currently implemented for this CAS.
[In]
[Out]
________________________________________________________________________________________
Fricas [A] time = 1.44517, size = 211, normalized size = 3.3 \begin{align*} -\frac{4 \, a^{3} \sin \left (d x + c\right ) - 3 \, a^{3} + 2 \,{\left (a^{3} \cos \left (d x + c\right )^{2} + 2 \, a^{3} \sin \left (d x + c\right ) - 2 \, a^{3}\right )} \log \left (-\sin \left (d x + c\right ) + 1\right )}{2 \,{\left (d \cos \left (d x + c\right )^{2} + 2 \, d \sin \left (d x + c\right ) - 2 \, d\right )}} \end{align*}
Verification of antiderivative is not currently implemented for this CAS.
[In]
[Out]
________________________________________________________________________________________
Sympy [F(-1)] time = 0., size = 0, normalized size = 0. \begin{align*} \text{Timed out} \end{align*}
Verification of antiderivative is not currently implemented for this CAS.
[In]
[Out]
________________________________________________________________________________________
Giac [A] time = 1.27287, size = 169, normalized size = 2.64 \begin{align*} \frac{6 \, a^{3} \log \left (\tan \left (\frac{1}{2} \, d x + \frac{1}{2} \, c\right )^{2} + 1\right ) - 12 \, a^{3} \log \left ({\left | \tan \left (\frac{1}{2} \, d x + \frac{1}{2} \, c\right ) - 1 \right |}\right ) + \frac{25 \, a^{3} \tan \left (\frac{1}{2} \, d x + \frac{1}{2} \, c\right )^{4} - 112 \, a^{3} \tan \left (\frac{1}{2} \, d x + \frac{1}{2} \, c\right )^{3} + 186 \, a^{3} \tan \left (\frac{1}{2} \, d x + \frac{1}{2} \, c\right )^{2} - 112 \, a^{3} \tan \left (\frac{1}{2} \, d x + \frac{1}{2} \, c\right ) + 25 \, a^{3}}{{\left (\tan \left (\frac{1}{2} \, d x + \frac{1}{2} \, c\right ) - 1\right )}^{4}}}{6 \, d} \end{align*}
Verification of antiderivative is not currently implemented for this CAS.
[In]
[Out]